#-------------------------------------------------
#
# Project created by QtCreator 2012-03-21T15:53:50
#
#-------------------------------------------------

QT       += core gui sql svg xml

contains(QT_CONFIG, opengl): QT += opengl

TARGET = DataViewer
TEMPLATE = app


SOURCES += main.cpp\
        dvMainWindow.cpp \
    dvDatabaseController.cpp \
    dvDatabaseControllerUsable.cpp \
    dvNewEditIndicatorDialog.cpp \
    dvAddDataFromDatabaseDialog.cpp \
    dvStyledItemDelegate.cpp \
    dvImportTableDialog.cpp \
    dvCsvReader.cpp \
    dvImportSettingsDialog.cpp \
    dvAddSynonymDialog.cpp \
    dvSynonymsDialog.cpp \
    dvXlsReader.cpp \
    dvCsvWriter.cpp \
    dvXlsWriter.cpp \
    dvFunctions.cpp \
    dvMapView.cpp \
    dvMapScene.cpp \
    dvRegionPolygonItem.cpp \
    QColorRampEditor.cpp \
    dvMapEditDialog.cpp \
    dvAddEditMapDialog.cpp \
    dvRegionEditDialog.cpp \
    dvAddEditRegionDialog.cpp \
    dvDataTableController.cpp \
    dvLineChart.cpp \
    dvHistogram.cpp \
    aboutdialog.cpp \
    nightcharts.cpp \
    dvPieChart.cpp

HEADERS  += dvMainWindow.h \
    version.h \
    dvDefinitions.h \
    dvDatabaseController.h \
    dvDatabaseControllerUsable.h \
    dvNewEditIndicatorDialog.h \
    dvAddDataFromDatabaseDialog.h \
    dvStyledItemDelegate.h \
    dvImportTableDialog.h \
    dvCsvReader.h \
    dvImportSettingsDialog.h \
    dvAddSynonymDialog.h \
    dvSynonymsDialog.h \
    dvXlsReader.h \
    dvCsvWriter.h \
    dvXlsWriter.h \
    dvFunctions.h \
    dvMapView.h \
    dvMapScene.h \
    dvRegionPolygonItem.h \
    QColorRampEditor.h \
    dvMapEditDialog.h \
    dvAddEditMapDialog.h \
    dvRegionEditDialog.h \
    dvAddEditRegionDialog.h \
    dvDataTableController.h \
    dvDataTableController.h \
    dvLineChart.h \
    dvHistogram.h \
    aboutdialog.h \
    nightcharts.h \
    dvPieChart.h

FORMS    += dvMainWindow.ui \
    dvNewEditIndicatorDialog.ui \
    dvAddDataFromDatabaseDialog.ui \
    dvImportTableDialog.ui \
    dvImportSettingsDialog.ui \
    dvAddSynonymDialog.ui \
    dvSynonymsDialog.ui \
    dvMapEditDialog.ui \
    dvAddEditMapDialog.ui \
    dvRegionEditDialog.ui \
    dvAddEditRegionDialog.ui \
    aboutdialog.ui

LIBS += -lqaxcontainer

MAJOR = 1
MINOR = 1
VERSION_HEADER = ../DataViewer/version.h

versiontarget.target = $$VERSION_HEADER
versiontarget.commands = ../version/debug/version.exe $$MAJOR $$MINOR $$VERSION_HEADER
versiontarget.depends = FORCE

PRE_TARGETDEPS += $$VERSION_HEADER
QMAKE_EXTRA_TARGETS += versiontarget

RESOURCES += \
    icons.qrc

QWT_LOCATION = C:/Qwt-6.0.1
INCLUDEPATH += $${QWT_LOCATION}/include

CONFIG( debug, debug|release ) {
    # debug
    win32:LIBS += C:/qwt-6.0.1/lib/libqwtd.a
    #win32:QMAKE_POST_LINK = copy /Y C:\qwt-6.0.1\lib\minGW\qwtd.dll $(DESTDIR)
} else {
    # release
    win32:LIBS += C:/qwt-6.0.1/lib/libqwt.a
    #win32:QMAKE_POST_LINK = copy /Y C:\qwt-6.0.1\lib\minGW\qwt.dll $(DESTDIR)
}

CONFIG += qwt

RC_FILE = dv.rc

OTHER_FILES += \
    icons/table-icon.png \
    icons/table-add-icon.png \
    icons/table-delete-icon.png \
    icons/table-edit-icon.png \
    icons/table-error-icon.png \
    icons/table-export-icon.png \
    icons/table-excel-icon.png \
    icons/table-gear-icon.png \
    icons/table-go-icon.png \
    icons/table-import-icon.png \
    icons/table-row-delete-icon.png \
    icons/table-row-insert-icon.png \
    icons/table-save-icon.png \
    icons/table-refresh-icon.png \
    icons/database-table-icon.png \
    icons/folder-table-icon.png \
    icons/table-select-column-icon.png \
    icons/table-select-row-icon.png \
    icons/table-select-column-icon del.png \
    icons/table-select-row-icon del.png \
    icons/table-select-column-icon edit.png \
    icons/table-icon-check.png \
    icons/Windows-Table-icon.png \
    icons/globe-Vista-icon.png \
    icons/app.png \
    icons/table-select-row-icon del DB.png \
    icons/table-select-column-icon del DB.png \
    icons/table-icon-commit.png \
    icons/application_exit.png \
    icons/accessories_dictionary.png \
    icons/about.png \
    icons/qt.png \
    images/weltkarte.gif \
    maps/world.dvg \
    maps/ukraine.dvg \
    icons/dvge.ico \
    icons/palette.png \
    icons/map_add.png \
    icons/map_delete.png \
    icons/map_edit.png \
    icons/map.png \
    icons/map_add (1).png \
    icons/map_edit (1).png \
    icons/map_delete (1).png \
    icons/map_magnify.png \
    icons/save.png \
    icons/gnome_preferences_system.png \
    icons/add.png \
    icons/edit.png \
    icons/delete.png \
    images/world_color.png \
    images/world_blue.png \
    images/world_black.jpg \
    icons/play.png \
    icons/stop.png \
    icons/rewind.png \
    icons/forward.png \
    icons/button_blue_repeat.png \
    icons/browse.png \
    icons/check.png \
    icons/Actions-office-chart-line-stacked-icon.png \
    icons/Line-chart-icon.png \
    icons/Bar-chart-icon.png \
    icons/Actions-office-chart-bar-icon.png \
    icons/Pie-chart-icon.png \
    icons/chart-pie-icon.png \
    icons/Bubble-chart-icon.png \
    icons/table.png
